package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.efoms.VideoGroupInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboVideoGroupService;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.IVideoGroupInfoConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;


@Component
public class VideoGroupInfoConsumeService implements IVideoGroupInfoConsumeService{
	@Reference(version = "1.0.0", timeout = 10000)
	private IDubboVideoGroupService dubboVideoGroupService;
	@Override
	public ResultPojo getVideoGroupInfo(String videoGroupId) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.getVideoGroupInfo(videoGroupId);
	}

	@Override
	public ResultPojo getVideoGroupInfoPage(String videoGroupId, String parentCode,String key,String devAreaCode,Page page) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.getVideoGroupInfoPage(videoGroupId, parentCode,key,devAreaCode,page);
	}

	@Override
	public ResultPojo getVideoGroupInfoList(String videoGroupId, String parentCode,String key,String devAreaCode) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.getVideoGroupInfoList(videoGroupId, parentCode,key,devAreaCode);
	}

	@Override
	public ResultPojo insertVideoGroupInfo(VideoGroupInfoDto videoGroupInfoDto, String userName) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.insertVideoGroupInfo(videoGroupInfoDto, userName);
	}

	@Override
	public ResultPojo updateVideoGroupInfo(VideoGroupInfoDto videoGroupInfoDto, String userName) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.updateVideoGroupInfo(videoGroupInfoDto, userName);
	}

	@Override
	public ResultPojo deleteVideoGroupInfo(String videoGroupId, String userName) {
		// TODO Auto-generated method stub
		return dubboVideoGroupService.deleteVideoGroupInfo(videoGroupId, userName);
	}

}
